<%@tag description="display the whole nodeTree" pageEncoding="UTF-8"%>
<%@attribute name="node" type="vo.community.CommunityVO" required="true" %>
<%@taglib prefix="tags" tagdir="/WEB-INF/tags/community" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

				<div class="panel panel-default community-panel">
    				<div class="panel-heading community-panel-heading" <c:if test="${node.isUniverse}">style="background-color: #${node.color};opacity:0.7;"</c:if>>
    				  	<h4 class="panel-title community-title">
    				  		<a data-toggle="collapse" data-parent="#accordion" href="#${node.code}" <c:if test="${node.isUniverse}">style="color:#ffffff;font-weight:bold"</c:if>>
    	      					${node.label}
    	    		  		</a>
    	    		  	</h4>
    				  	<a href="#" class="addCommunity pull-right btn btn-default" data-toggle="${node.hjid}"><span class="glyphicon glyphicon-plus"></span></a>
    				</div>
    				<div id="${node.code}" class="panel-collapse collapse">
   	  		 			<div class="panel-body" <c:if test="${node.isUniverse}">style="border-color: #${node.color};"</c:if>>
   	  		 				<c:if test="${node.hasChildren}">
   	  		 				<c:forEach items="${node.children}" var="com" varStatus="status">
								<tags:communityTree node="${com}" />
							</c:forEach>
							</c:if>
    	  				</div>
   					</div>
  				</div>